find minimum in rotated sorted array java